package com.zs.model.criteria;


/**
 * 通用查询条件
 */
public class BaseCriteria {

    private Long id;

    private String keyWord;//关键字模糊查询

    /**
     * 通用查询条件
     */
    private Integer status;//状态

    private String createdTime;//创建时间

    private String updatedTime;//更新时间

    private Integer pageNo;//当前页码

    private Integer pageSize; //每页条数

    private Integer pageIndex;//从哪页开始

    private String startTime;//开始时间

    private String endTime;//结束时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(String updatedTime) {
        this.updatedTime = updatedTime;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageIndex() {
        if (this.pageIndex == null) {
            return (this.pageNo - 1) * this.pageSize;
        } else {
            return this.pageIndex;
        }
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}
